<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./js/vue.js"></script>
    <style>
        .ball{
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 38px;
            font-weight: bold;
            width: 100px;
            height: 100px;
            border: 1px solid #000;
            transition: 2s;
        }
    </style>
</head>
<body>
    <div id="root">
        <div class="ball" :style="list">Vue</div>
        <div>
           <button @click="list.push(activeCircle)">变圆</button>
           <button @click="list.push(activeBgc)">变色</button>
           <button @click="list.push(activeRotate)">转动</button>
        </div>
    </div>
    <script>
        new Vue({
            el:'#root',
            data(){
                return{
                   activeCircle:{
                     borderRadius:'50%'
                   },
                   activeBgc:{
                    backgroundColor:'springgreen'
                   },
                   activeRotate:{
                    transform:'rotate(360deg)'
                   },
                   list:[]
                }
            }
        })
    </script>
</body>
</html>